from flask import Flask, request

app = Flask(__name__)


@app.route('/')
def a():
    return app.send_static_file('u.htm')


@app.route('/try', methods=['POST'])
def b():
    a = request.files
    print(a)
    print(a['0'].filename)
    print(a['0'].content_type)
    print(len(a['0'].stream.read()))
    return 'success'


app.run(port=666)
